using System;
using System.Data;
using System.Configuration;
using System.Web;


/// <summary>
/// Summary description for Giohangs
/// </summary>
namespace FShop.DAL
{

    /// <summary>
    /// Depict a product is being put to a basket
    /// </summary>
    public class OrderProduct
    {
        public OrderProduct()
        {
            orderProductID = "";
            proName = "";
            img = "";
            amount = 1;
            price = 0;
            
            
        }
        private string orderProductID;
        private string proName;
        private string img;
        private int amount;
        private float price;




        public string OrderProductID
        {
            get
            {
                return orderProductID;
            }
            set
            {
                orderProductID = value;
            }
        }
        public string ProName
        {
            get
            {
                return proName;
            }
            set
            {
                proName = value;
            }
        }

        public int Amount
        {
            get
            {
                return amount;
            }
            set
            {
                amount = value;
            }
        }
        public float Price
        {
            get
            {
                return price;
            }
            set
            {
                price = value;
            }
        }
        public string Image
        {
            get
            {
                return img ;
            }
            set
            {
                img  = value;
            }
        }

        public float Summary
        {
            get
            {
                return price * amount;
            }
        }
    }
}
